//
//  ShopcartModel.m
//  B2C
//
//  Created by 李小龙 on 2017/8/8.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import "ShopcartModel.h"

@implementation AttributeModel

MJCodingImplementation

@end

@implementation ShopcartModel

MJCodingImplementation
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"twoattribute":[AttributeModel class],
             @"goodsattribute":[GoodsAttributePriceModel class],
             //@"goodspricetaid":[GoodsPriceTaidModel class],
             @"attribute":[GoodAttributeModel class]};
}
- (NSString *)gprice {
    return [_gprice replacePriceSuffix];
}
- (NSString *)goldprice {
    return [_goldprice replacePriceSuffix];
}

- (NSString *)gaid{
    if (!_gaid) {
        return @"";
    }
    return _gaid;
}
@end

@implementation ShopcartClassifyModel

MJCodingImplementation
//+ (NSDictionary *)mj_replacedKeyFromPropertyName {
//    return @{@"shopcart":@"goods"};
//}
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"shopcart":[ShopcartModel class],
             @"fullcut":[GoodsFullCut class]};
}

@end
